Scenario #1039: Remove Operations Contact From Partner

Properties

Required

Given

name value
operationsContactPerson Dennis Krause

Operations-Contact: Dennis Krause

HTTP GET "/api/hs/office/relations?relationType=OPERATIONS&name=Dennis+Krause" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 200 OK 
[ {
  "uuid" : "62796213-c6dd-4497-ba93-ea9264f9703d", // Operations-Contact: Dennis Krause for Test AG
  "anchor" : {
    "uuid" : "1223603d-1a3b-4e0c-a244-027585d22eb2", // Person: Test AG
    "personType" : "LEGAL_PERSON",
    "tradeName" : "Test AG",
    "salutation" : null,
    "title" : null,
    "givenName" : null,
    "familyName" : null
  },
  "holder" : {
    "uuid" : "0ffa07f3-9172-4800-a308-fd961c4f4aa5", // Person: Dennis Krause
    "personType" : "NATURAL_PERSON",
    "tradeName" : null,
    "salutation" : null,
    "title" : null,
    "givenName" : "Dennis",
    "familyName" : "Krause"
  },
  "type" : "OPERATIONS",
  "mark" : null,
  "contact" : {
    "uuid" : "08c5f2a0-6bbe-4e4e-9fc7-950f0c1a0d7b", // Contact: Dennis Krause
    "caption" : "Dennis Krause",
    "postalAddress" : { },
    "emailAddresses" : {
      "main" : "dennis.krause@example.org"
    },
    "phoneNumbers" : {
      "main" : "+49 9932 587741"
    }
  }
} ]

In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.

Delete the Contact

HTTP DELETE "/api/hs/office/relations/62796213-c6dd-4497-ba93-ea9264f9703d" // Operations-Contact: Dennis Krause for Test AG \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }` \
  -H 'Content-Type: application/json'
=> status: 204 NO_CONTENT 

Verify the New OPERATIONS Relation

HTTP GET "/api/hs/office/relations/62796213-c6dd-4497-ba93-ea9264f9703d" // Operations-Contact: Dennis Krause for Test AG \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<hsh-alex_superuser>"` \
  `# }`
=> status: 404 NOT_FOUND 

generated on 2026-07-17 01:42:24 for branch